package com.studentstreet.entities;

public class CommentEntity {
	private int id = 0;
	private int goods_id = 0;
	private int user_id = 0;
	private String title = "";
	private String content = "";
	private int rank = 0;
	private String time = "";

	private String user_name = "";

	public CommentEntity() {
		super();
	}

	public CommentEntity(int id, int goods_id, int user_id, String title,
			String content, int rank, String time, String user_name) {
		this.id = id;
		this.goods_id = goods_id;
		this.user_id = user_id;
		this.title = title;
		this.content = content;
		this.rank = rank;
		this.time = time;
		this.user_name = user_name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getGoods_id() {
		return goods_id;
	}

	public int getUser_id() {
		return user_id;
	}

	public String getTitle() {
		return title;
	}

	public String getContent() {
		return content;
	}

	public int getRank() {
		return rank;
	}

	public String getTime() {
		return time;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	@Override
	public String toString() {
		return "CommentEntity [id=" + id + ", goods_id=" + goods_id
				+ ", user_id=" + user_id + ", title=" + title + ", content="
				+ content + ", rank=" + rank + ", time=" + time
				+ ", user_name=" + user_name + "]";
	}
}
